package com.velvetantler.weather.bean

data class BaseResponse<T>(
    val code: Int,
    val data: T,
    val message: String
)

/**
 * 登录请求数据类
 */
data class LoginRequest(
    val username: String,
    val password: String
)

/**
 * 登录响应数据类
 */
data class LoginResponse(
    val token: String
)

/**
 * 用户信息响应数据类
 */
data class UserInfoResponse(
    val username: String = "",
    val avatar: String = "",
    val gender: String = "",
    val nick_name: String = "",
    val motto: String = ""
)

/**
 * 城市信息
 */
data class CityInfo(
    var cityName: String,
    val adCode: String,
    var latitude: Double,
    var longitude: Double
)

/**
 * 收藏城市的信息
 */
data class CityStar(
    val cityName: String,
    val latitude: Double,
    val longitude: Double,
    val minTemp: String,
    val maxTemp: String
)
